#ifndef DIALOGADDNEWPAPER_H
#define DIALOGADDNEWPAPER_H

#include <QDialog>
#include "ui_dialogaddnewpaper.h"
#include <QPrinter>
#include <QPainter>
#include <QTextCursor>
#include <QTextDocument>
#include <QFile>
#include <QTextCodec>
#include <QTextDocumentWriter>
#include "srcModuleContracts/Contract.h"
#include "srcModuleContracts/DialogContractInfo.h"
#include "srcModuleSchedule/structuresSchedule.h"
#include "datareturn.h"
#include "DialogReturnMoney.h"
class DialogReturnMoney;
class DialogAddNewPaper : public QDialog
{
	Q_OBJECT

public:
	DialogAddNewPaper(enum ViewMode mode,ViewDataReturn & record,QWidget *parent = 0);
	~DialogAddNewPaper();
	const Ui::DialogAddNewPaperClass *returnUi()const
	{
		return ui;
	}

private:
	Ui::DialogAddNewPaperClass *ui;
	bool connectSlots();
	void viewRecordAdd();
	void viewRecordView();
	void viewRecordChange();
	quint32 id;
	ViewDataReturn record;
private slots:
	void on_okButton();
	void on_cancelButton();
	void on_printButton();
	void on_checked(int );
	void on_buttonAboutContract();

};

#endif // DIALOGADDNEWPAPER_H
